package com.haiyan.demo13_抽象类的特点;

import org.w3c.dom.ls.LSOutput;

abstract class Fu{
    private String name;
    private int age;
    public Fu(String name,int age)
    {
        this.name=name;
        this.age=age;
    }
    public void show()
    {
        System.out.println(this.name+","+this.age);
    }
}
class Zi extends Fu{
    String sex;
    public Zi(String name,int age,String sex)
    {
        super(name,age);
        this.sex=sex;
    }
}
abstract  class Person{}
abstract  class Animal{
    public abstract  void method1();
    public abstract  void method2();
}
class Dog extends Animal{

    @Override
    public void method1() {

    }

    @Override
    public void method2() {

    }
}
public class Test {
    public static void main(String[] args) {
        Zi zi=new Zi("张三",18,"男");
        zi.show();
        System.out.println(zi.sex);
    }

}
